package tmproject.hlhj.fhp.tmproject

import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v7.app.AppCompatActivity
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import kotlinx.android.synthetic.main.activity_test_fgm.*
import tmproject.hlhj.fhp.anwser.BaseFgm
import tmproject.hlhj.fhp.tmvote.fragments.VoteListFgm
import java.util.ArrayList

/**
 * Created by Never Fear   on 2018\8\13 0013.
Never More....
 */
class TMFgm :AppCompatActivity() {
    private var fgmLists= ArrayList<Fragment>()
    private lateinit var adp:FgmPagerAdp
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_test_fgm)


        /*val voteListFgm= VoteListFgm()
        fgmLists.add(voteListFgm)*/
        val baseFgm = BaseFgm()
        fgmLists.add(baseFgm)
        adp= FgmPagerAdp(supportFragmentManager,fgmLists)

        viewPager.adapter=adp



    }
}